package island

import "github.com/containerd/console"

func (container *base) SetTTYSize(width, height uint16) {
	if width == 0 || height == 0 {
		return
	}
	logger.Debug("set tty ", width, height)
	container.RuntimeSetting.ttyWinSize = &console.WinSize{
		Height: height,
		Width:  width,
	}
}
